codebook_data$gender <- recode_factor(codebook_data$gender, `Mężczyzna` = "M", `Kobieta` = "F")
codebook_data$response <- recode_factor(codebook_data$response, `Tak` = "Y", `Nie` = "N")
codebook_data$education_philosophical <- recode_factor(codebook_data$education_philosophical, `Tak` = "Y", `Nie` = "N")
table(codebook_data$education)
codebook_data$education <- recode_factor(codebook_data$education,
`Podstawowe` = 1,
`Średnie` = 2,
`Zawodowe` = 3,
`Wyższe` = 4,
`Doktorat` = 5,
`Habilitacja Plus` = 6,
`-oth-` = 7
)
head(codebook_data)
write_csv(codebook_data, "knobe_pl.csv")
library(codebook)
library(labelled)
##
## Dołączanie pakietu: 'labelled'
## Następujący obiekt został zakryty z 'package:codebook':
##
## to_factor
ggplot2::theme_set(ggplot2::theme_bw())
codebook_data <- rio::import("knobe_pl.csv")
metadata(codebook_data)$name <- "Data of Polish replication study concerning the Knobe Effect"
metadata(codebook_data)$description <- "Data of lorem impumssadasdasdsa asdsa da d sad as das dsa asdsadas blah blah blah blah blah"
metadata(codebook_data)$creator <- "Laboratory of Experimental Philosophy Kognilab"
metadata(codebook_data)$url <- "http://onet.pl"
metadata(codebook_data)$citation <- "citation"
metadata(codebook_data)$datePublished <- "2022-07-07"
metadata(codebook_data)$temporalCoverage <- "Spring 2015 to Winter 2016"
metadata(codebook_data)$spatialCoverage <- "Online"
var_label(codebook_data) <- list(
id = "ID of the participant",
submitdate = "Submission date",
startdate = "Start date",
condition = "Experimental condition",
response = "Did the chairman <adverb> harm/help the environment?",
responsibility = "To what extent the chairman was responsible for harming/helping the environment?",
gender = "Gender",
birthyear = "Year of birth",
education = "Education",
education_other = "Education for Other option",
education_philosophical = "Philosophical education"
)
val_labels(codebook_data$gender) = c("Female" = "F", "Male" = "M")
val_labels(codebook_data$education) = c("Primary" = 1,
"High school" = 2,
"Technical school" = 3,
"Higher education" = 4,
"Doctoral degree" = 5,
"Post-doctoral degree" = 6,
"Other" = 7
)
val_labels(codebook_data$response) = c("Yes" = "Y", "No" = "N")
val_labels(codebook_data$education_philosophical) = c("Yes" = "Y", "No" = "N")
codebook(codebook_data)
## No missing values.
Dataset name: Data of Polish replication study concerning the Knobe Effect
Data of lorem impumssadasdasdsa asdsa da d sad as das dsa asdsadas blah blah blah blah blah
Temporal Coverage: Spring 2015 to Winter 2016
Spatial Coverage: Online
Citation: citation
URL: http://onet.pl
Date published: 2022-07-07
Creator:
| name | value |
|---|---|
| 1 | Laboratory of Experimental Philosophy Kognilab |
|
ID of the participant
Distribution of values for id
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| id | ID of the participant | numeric | 0 | 1 | 1 | 790 | 1541 | 775.6425 | 436.8408 | ▇▇▇▇▆ |
Submission date
## 1072 unique, categorical values, so not shown.
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | min | median | max |
|---|---|---|---|---|---|---|---|---|
| submitdate | Submission date | POSIXct | 0 | 1 | 1072 | 2015-04-17 00:50:18 | 2015-04-19 23:29:39 | 2016-02-12 17:37:58 |
Start date
## 1071 unique, categorical values, so not shown.
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | min | median | max |
|---|---|---|---|---|---|---|---|---|
| startdate | Start date | POSIXct | 0 | 1 | 1071 | 2015-04-17 00:49:09 | 2015-04-19 23:25:18 | 2016-02-12 17:35:53 |
## 1073 unique, categorical values, so not shown.
0 missing values.
| name | data_type | n_missing | complete_rate | n_unique | min | median | max | label |
|---|---|---|---|---|---|---|---|---|
| datestamp | POSIXct | 0 | 1 | 1073 | 2015-04-17 00:50:18 | 2015-04-19 23:29:39 | 2016-02-12 17:37:58 | NA |
Distribution of values for adverb
0 missing values.
| name | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace | label |
|---|---|---|---|---|---|---|---|---|---|
| adverb | character | 0 | 1 | 8 | 0 | 6 | 15 | 0 | NA |
Experimental condition
Distribution of values for condition
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| condition | Experimental condition | character | 0 | 1 | 2 | 0 | 4 | 4 | 0 |
Did the chairman <adverb> harm/help the environment?
Distribution of values for response
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | median | max | whitespace | n_value_labels |
|---|---|---|---|---|---|---|---|---|---|---|---|
| response | Did the chairman <adverb> harm/help the environment? | haven_labelled | 0 | 1 | 2 | 0 | 1 | NA | 1 | 0 | 2 |
| name | value |
|---|---|
| 1 | Y |
| 2 | N |
To what extent the chairman was responsible for harming/helping the environment?
Distribution of values for responsibility
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| responsibility | To what extent the chairman was responsible for harming/helping the environment? | numeric | 0 | 1 | 1 | 2 | 5 | 2.31378 | 1.515148 | ▇▃▂▂▂ |
Gender
Distribution of values for gender
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | median | max | whitespace | n_value_labels |
|---|---|---|---|---|---|---|---|---|---|---|---|
| gender | Gender | haven_labelled | 0 | 1 | 2 | 0 | 1 | NA | 1 | 0 | 2 |
| name | value |
|---|---|
| 1 | F |
| 2 | M |
Year of birth
Distribution of values for birthyear
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | hist |
|---|---|---|---|---|---|---|---|---|---|---|
| birthyear | Year of birth | numeric | 0 | 1 | 16 | 1988 | 1.7e+07 | 17892.13 | 521489 | ▇▁▁▁▁ |
Education
Distribution of values for education
0 missing values.
| name | label | data_type | n_missing | complete_rate | min | median | max | mean | sd | n_value_labels | hist |
|---|---|---|---|---|---|---|---|---|---|---|---|
| education | Education | haven_labelled | 0 | 1 | 1 | 4 | 7 | 3.428305 | 1.180369 | 7 | ▁▃▁▇▁▁▁▁ |
| name | value |
|---|---|
| Primary | 1 |
| High school | 2 |
| Technical school | 3 |
| Higher education | 4 |
| Doctoral degree | 5 |
| Post-doctoral degree | 6 |
| Other | 7 |
Education for Other option
Distribution of values for education_other
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | max | whitespace |
|---|---|---|---|---|---|---|---|---|---|
| education_other | Education for Other option | character | 0 | 1 | 20 | 1053 | 0 | 102 | 0 |
Philosophical education
Distribution of values for education_philosophical
0 missing values.
| name | label | data_type | n_missing | complete_rate | n_unique | empty | min | median | max | whitespace | n_value_labels |
|---|---|---|---|---|---|---|---|---|---|---|---|
| education_philosophical | Philosophical education | haven_labelled | 0 | 1 | 2 | 0 | 1 | NA | 1 | 0 | 2 |
| name | value |
|---|---|
| 1 | Y |
| 2 | N |
The following JSON-LD can be found by search engines, if you share this codebook publicly on the web.
{
"name": "Data of Polish replication study concerning the Knobe Effect",
"description": "Data of lorem impumssadasdasdsa asdsa da d sad as das dsa asdsadas blah blah blah blah blah\n\n\n## Table of variables\nThis table contains variable names, labels, and number of missing values.\nSee the complete codebook for more.\n\n|name |label | n_missing|\n|:-----------------------|:--------------------------------------------------------------------------------|---------:|\n|id |ID of the participant | 0|\n|submitdate |Submission date | 0|\n|startdate |Start date | 0|\n|datestamp |NA | 0|\n|adverb |NA | 0|\n|condition |Experimental condition | 0|\n|response |Did the chairman <adverb> harm/help the environment? | 0|\n|responsibility |To what extent the chairman was responsible for harming/helping the environment? | 0|\n|gender |Gender | 0|\n|birthyear |Year of birth | 0|\n|education |Education | 0|\n|education_other |Education for Other option | 0|\n|education_philosophical |Philosophical education | 0|\n\n### Note\nThis dataset was automatically described using the [codebook R package](https://rubenarslan.github.io/codebook/) (version 0.9.4.9000).",
"creator": "Laboratory of Experimental Philosophy Kognilab",
"url": "http://onet.pl",
"citation": "citation",
"datePublished": "2022-07-07",
"temporalCoverage": "Spring 2015 to Winter 2016",
"spatialCoverage": "Online",
"keywords": ["id", "submitdate", "startdate", "datestamp", "adverb", "condition", "response", "responsibility", "gender", "birthyear", "education", "education_other", "education_philosophical"],
"@context": "http://schema.org/",
"@type": "Dataset",
"variableMeasured": [
{
"name": "id",
"description": "ID of the participant",
"@type": "propertyValue"
},
{
"name": "submitdate",
"description": "Submission date",
"@type": "propertyValue"
},
{
"name": "startdate",
"description": "Start date",
"@type": "propertyValue"
},
{
"name": "datestamp",
"@type": "propertyValue"
},
{
"name": "adverb",
"@type": "propertyValue"
},
{
"name": "condition",
"description": "Experimental condition",
"@type": "propertyValue"
},
{
"name": "response",
"description": "Did the chairman <adverb> harm/help the environment?",
"value": "Y. Yes,\nN. No",
"maxValue": "Y",
"minValue": "N",
"@type": "propertyValue"
},
{
"name": "responsibility",
"description": "To what extent the chairman was responsible for harming/helping the environment?",
"@type": "propertyValue"
},
{
"name": "gender",
"description": "Gender",
"value": "F. Female,\nM. Male",
"maxValue": "M",
"minValue": "F",
"@type": "propertyValue"
},
{
"name": "birthyear",
"description": "Year of birth",
"@type": "propertyValue"
},
{
"name": "education",
"description": "Education",
"value": "1. Primary,\n2. High school,\n3. Technical school,\n4. Higher education,\n5. Doctoral degree,\n6. Post-doctoral degree,\n7. Other",
"maxValue": 7,
"minValue": 1,
"@type": "propertyValue"
},
{
"name": "education_other",
"description": "Education for Other option",
"@type": "propertyValue"
},
{
"name": "education_philosophical",
"description": "Philosophical education",
"value": "Y. Yes,\nN. No",
"maxValue": "Y",
"minValue": "N",
"@type": "propertyValue"
}
]
}`